// 包装token 设置 查询 删除token


const obj = {
    TOKEN_KEY: "token_key"
}

function setToken(token) {
    localStorage.setItem(obj.TOKEN_KEY, token)
}

function getToken() {
    return localStorage.getItem(obj.TOKEN_KEY)
}

function removeToken() {
    localStorage.removeItem(obj.TOKEN_KEY)
}

export {
    setToken,
    getToken,
    removeToken
}